home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 34.zip / BS1 part 34 / FredFish PD 315.adf / Surf / scrndef.c < prev    next >
C/C++ Source or Header  |  1990-02-14  |  2KB  |  77 lines

  1. /* this file contains definition for the screen */
  2.  
  3. #include <exec/types.h>
  4. #include <intuition/intuition.h>
  5. #include <graphics/gfxmacros.h>
  6. #ifdef MANX
  7. #include <functions.h>
  8. #endif
  9.  
  10. #include "scrndef.h"
  11.  
  12. struct TextAttr myfont1 = {
  13.     (UBYTE *)"topaz.font", 8, 0, 0
  14. };
  15.  
  16.  
  17.  
  18. struct NewScreen SurfScrnDef = {
  19.     0,0,   /* left and top edge */
  20.     SurfInitW, SurfInitH+ButHeight,  /* width and height */
  21.     SurfInitD,   /* num bitplanes bit planes */
  22.     0,1, /* detail, block pen */
  23.     SurfInitType, /* lores non interlaced */
  24.     CUSTOMSCREEN,
  25.     &myfont1,
  26.     NULL /*(UBYTE *) "Screen" */,
  27.     NULL,
  28.     NULL
  29. };
  30.  
  31.  
  32. struct NewWindow SurfWinDef = {
  33.     0, ButHeight, /* left, top */
  34.     SurfInitW, SurfInitH, /* width, height */
  35.     -1, -1, /* default detail and block pen */
  36.     MOUSEBUTTONS | MOUSEMOVE| INTUITICKS /* | CLOSEWINDOW */,
  37.     RMBTRAP | SIMPLE_REFRESH | GIMMEZEROZERO | BORDERLESS
  38.      | BACKDROP,
  39.     NULL, NULL, /* gadget, checkmark */
  40.     NULL /* (UBYTE *) "BezSurf - By Eric Davies" */,
  41.     NULL, /* pointer to screen */
  42.     NULL, /* pointer to super bitmap */
  43.     10, 10, 640, 200, /* min and max dimensions */
  44.     CUSTOMSCREEN
  45. };
  46.  
  47. struct NewWindow GadWinDef = {
  48.     0, 0, /* left, top */
  49.     SurfInitW, ButHeight, /* width, height */
  50.     -1, 0, /* default detail and block pen */
  51.     GADGETUP,
  52.     SIMPLE_REFRESH | BORDERLESS | BACKDROP,
  53.     NULL, NULL, /* gadget, checkmark */
  54.     NULL /*(UBYTE *) "Gadwin" */,
  55.     NULL, /* pointer to screen */
  56.     NULL, /* pointer to super bitmap */
  57.     10, 10, 10, 10, /* min and max dimensions */
  58.     CUSTOMSCREEN
  59. };
  60.  
  61.  
  62.  
  63. struct NewWindow CntrlWinDef = {
  64.     0, 0, /* left, top */
  65.     640, 180, /* width, height */
  66.     -1, -1, /* default detail and block pen */
  67.     CLOSEWINDOW| GADGETUP| MENUPICK,
  68.     SIMPLE_REFRESH | WINDOWCLOSE | WINDOWDEPTH
  69.     | WINDOWDRAG | WINDOWSIZING,
  70.     NULL, NULL, /* gadget(set by program), checkmark */
  71.     (UBYTE *)  "BezSurf - Control Panel - By Eric Davies",
  72.     NULL, /* pointer to screen */
  73.     NULL, /* pointer to super bitmap */
  74.     10, 10, 640, 200, /* min and max dimensions */
  75.     WBENCHSCREEN
  76. };
  77.